home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / Finder.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  4.0 KB  |  120 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Finder.a
  3. ;
  4. ;    Contains:    Finder flags and container types.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__FINDER__') = 'UNDEFINED' THEN
  21. __FINDER__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29. ; Make only the following consts avaiable to resource files that include this file 
  30. kCustomIconResource                EQU        -16455                ; Custom icon family resource ID 
  31. kContainerFolderAliasType        EQU        'fdrp'                ; type for folder aliases 
  32. kContainerTrashAliasType        EQU        'trsh'                ; type for trash folder aliases 
  33. kContainerHardDiskAliasType        EQU        'hdsk'                ; type for hard disk aliases 
  34. kContainerFloppyAliasType        EQU        'flpy'                ; type for floppy aliases 
  35. kContainerServerAliasType        EQU        'srvr'                ; type for server aliases 
  36. kApplicationAliasType            EQU        'adrp'                ; type for application aliases 
  37. kContainerAliasType                EQU        'drop'                ; type for all other containers 
  38. ; types for Special folder aliases 
  39. kSystemFolderAliasType            EQU        'fasy'
  40. kAppleMenuFolderAliasType        EQU        'faam'
  41. kStartupFolderAliasType            EQU        'fast'
  42. kPrintMonitorDocsFolderAliasType EQU        'fapn'
  43. kPreferencesFolderAliasType        EQU        'fapf'
  44. kControlPanelFolderAliasType    EQU        'fact'
  45. kExtensionFolderAliasType        EQU        'faex'
  46. ; types for AppleShare folder aliases 
  47. kExportedFolderAliasType        EQU        'faet'
  48. kDropFolderAliasType            EQU        'fadr'
  49. kSharedFolderAliasType            EQU        'fash'
  50. kMountedFolderAliasType            EQU        'famn'
  51.  
  52. ; Finder Flags 
  53. kIsOnDesk                        EQU        $1
  54. kColor                            EQU        $E
  55. kIsShared                        EQU        $40
  56. kHasBeenInited                    EQU        $100
  57. kHasCustomIcon                    EQU        $400
  58. kIsStationery                    EQU        $800
  59. kIsStationary                    EQU        $800
  60. kNameLocked                        EQU        $1000
  61. kHasBundle                        EQU        $2000
  62. kIsInvisible                    EQU        $4000
  63. kIsAlias                        EQU        $8000
  64.  
  65. ;    
  66. ;    The following declerations used to be in Files.i, 
  67. ;    but are Finder specific and were moved here.
  68. ;
  69.     IF ¬ OLDROUTINELOCATIONS  THEN
  70. ; Finder Constants 
  71. fOnDesk                            EQU        1
  72. fHasBundle                        EQU        8192
  73. fTrash                            EQU        -3
  74. fDesktop                        EQU        -2
  75. fDisk                            EQU        0
  76.  
  77. FInfo                     RECORD    0
  78. fdType                     ds.l   1        ; offset: $0 (0)        ;the type of the file
  79. fdCreator                 ds.l   1        ; offset: $4 (4)        ;file's creator
  80. fdFlags                     ds.w   1        ; offset: $8 (8)        ;flags ex. hasbundle,invisible,locked, etc.
  81. fdLocation                 ds     Point    ; offset: $A (10)        ;file's location in folder
  82. fdFldr                     ds.w   1        ; offset: $E (14)        ;folder containing file
  83. sizeof                     EQU *            ; size:   $10 (16)
  84.                         ENDR
  85.  
  86. ; typedef struct FInfo         FInfo
  87. FXInfo                     RECORD    0
  88. fdIconID                 ds.w   1        ; offset: $0 (0)        ;Icon ID
  89. fdUnused                 ds.w   3        ; offset: $2 (2)        ;unused but reserved 6 bytes
  90. fdScript                 ds.b   1        ; offset: $8 (8)        ;Script flag and number
  91. fdXFlags                 ds.b   1        ; offset: $9 (9)        ;More flag bits
  92. fdComment                 ds.w   1        ; offset: $A (10)        ;Comment ID
  93. fdPutAway                 ds.l   1        ; offset: $C (12)        ;Home Dir ID
  94. sizeof                     EQU *            ; size:   $10 (16)
  95.                         ENDR
  96.  
  97. ; typedef struct FXInfo     FXInfo
  98. DInfo                     RECORD    0
  99. frRect                     ds     Rect    ; offset: $0 (0)        ;folder rect
  100. frFlags                     ds.w   1        ; offset: $8 (8)        ;Flags
  101. frLocation                 ds     Point    ; offset: $A (10)        ;folder location
  102. frView                     ds.w   1        ; offset: $E (14)        ;folder view
  103. sizeof                     EQU *            ; size:   $10 (16)
  104.                         ENDR
  105.  
  106. ; typedef struct DInfo         DInfo
  107. DXInfo                     RECORD    0
  108. frScroll                 ds     Point    ; offset: $0 (0)        ;scroll position
  109. frOpenChain                 ds.l   1        ; offset: $4 (4)        ;DirID chain of open folders
  110. frScript                 ds.b   1        ; offset: $8 (8)        ;Script flag and number
  111. frXFlags                 ds.b   1        ; offset: $9 (9)        ;More flag bits
  112. frComment                 ds.w   1        ; offset: $A (10)        ;comment
  113. frPutAway                 ds.l   1        ; offset: $C (12)        ;DirID
  114. sizeof                     EQU *            ; size:   $10 (16)
  115.                         ENDR
  116.  
  117. ; typedef struct DXInfo     DXInfo
  118.     ENDIF
  119.     ENDIF ; __FINDER__
  120.